import os

def list_files_in_directory(directory):
    # 获取目录中所有文件和文件夹
    files_and_dirs = os.listdir(directory)
    # 可以选择只列出文件
    files = [f for f in files_and_dirs if os.path.isfile(os.path.join(directory, f))]
    # 可以选择只列出文件夹
    dirs = [d for d in files_and_dirs if os.path.isdir(os.path.join(directory, d))]
    
    return files, dirs

# 示例使用
directory_path = '/'  # 替换为您的文件夹路径
files, dirs = list_files_in_directory( os.getcwd())
print("Files:", files)
print("Directories:", dirs)